package com.example.jdbcdemo.service;

import com.example.jdbcdemo.utils.JsonUtil;

public interface GoodsServiceInterface {
    //添加库存
    public JsonUtil addGoods(int productId,int num,int storageId);

    //删除库存
    public JsonUtil deleteGoods(int id);

    //列举货物清单
    public JsonUtil queryGoodsList();

    //修改货物
    public JsonUtil updateGoods(int id,int productId,int num,int storageId);

    //根据id获取货物
    public JsonUtil queryGoodsById(int id);

    public JsonUtil changeGoodsInStorage(int goodsId,int targetId,int num);
}
